<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@include file="/comm/mytags.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>后台管理系统</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="keywords" content="后台管理系统">
    <meta name="description" content="致力于提供通用版本后台管理解决方案">

    <link rel="shortcut icon" href="${ctx}/static/img/favicon.ico">
    <link rel="stylesheet" href="${ctx}/static/layui_v2/css/layui.css">
    <link rel="stylesheet" href="${ctx}/static/css/global.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/common.css" media="all">
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/personal.css" media="all">
    <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_9h680jcse4620529.css">
    <script src="${ctx}/static/layui_v2/layui.js"></script>

<body style="margin-top: 30px;">
<div class="larry-grid layui-anim layui-anim-upbit larryTheme-A " >
    <div class="larry-personal">
        <div class="layui-tab layui-tab-brief" lay-filter="filterSysLogTab">
            <ul class="layui-tab-title">
                <li class="layui-this">排课列表</li>
            </ul>
            <div class="layui-tab-content" style="padding: 0px">
                <!-- 业务日志TAB -->
                <div class="layui-tab-item layui-show">
                    <blockquote class="layui-elem-quote mylog-info-tit" style="border-bottom: 0px; margin: 10px 15px;">

                        <div class="layui-form-item" style="margin-bottom: 0px;">
                            <input type="hidden" id="currentDate" value="${currentDate}">
                            <input type="hidden" id="classId" value="${classId}">
                            <form class="layui-form" id="sysSearchForm">
                                <div class="layui-inline" style="margin: 0px;">
                                    <input type="hidden" name="logType" value="info">
                                    <%--<div class="layui-input-inline" style="width:110px;">
                                        <select name="searchTerm">
                                            <option value="logTitleTerm">日志标题</option>
                                            <option value="logMethodTerm">请求方式</option>
                                        </select>
                                    </div>--%>
                                   <%-- <div class="layui-input-inline" style="width:145px;">
                                        <label class="layui-form-label" style="width:auto;">请输入班级名称</label>
                                        <input type="text" name="searchContent" value="" placeholder="请输入关键字" class="layui-input search_input">
                                    </div>--%>
                                </div>
                                <%--<div class="layui-inline"  style="margin:0px;">
                                    <a class="layui-btn layui-btn-normal save"> <i class="layui-icon larry-icon larry-xinzeng1"></i>保存</a>
                                </div>
                                <div class="layui-inline"  style="margin:0px;">
                                    <a class="layui-btn layui-btn-normal reslust"> <i class="layui-icon larry-icon larry-xinzeng1"></i>重排</a>
                                </div>--%>
                                <%-- <div class="layui-inline" style="margin:0px;">
                                     <label class="layui-form-label" style="width:auto;">请求时间</label>
                                     <div class="layui-input-inline" style="width:145px;">
                                         <input type="text" class="layui-input" id="beginTime" name="beginTime" placeholder="请选择" readonly>
                                     </div>
                                 </div>--%>
                               <%-- <div class="layui-inline" style="margin:0px;">
                                    <a class="layui-btn sysSearch_btn" lay-submit lay-filter="sysSearchFilter"><i class="layui-icon larry-icon larry-chaxun7"></i>查询</a>
                                </div>
                                <div class="layui-inline"  style="margin:0px;">
                                    <a class="layui-btn layui-btn-normal stuAdd_btn"> <i class="layui-icon larry-icon larry-xinzeng1"></i>新增班级</a>
                                </div>
                                <div class="layui-inline" style="margin:0px;">
                                    <a class="layui-btn layui-btn-normal excelSysLogExport_btn"  style="background-color:#5FB878"> <i class="layui-icon larry-icon larry-danye"></i>导出</a>
                                </div>--%>

                            </form>
                        </div>
                    </blockquote>
                    <div class="larry-separate"></div>
                   <%-- <div class="layui-inline"  style="margin:0px;">
                        <a class="layui-btn layui-btn-normal save"> <i class="layui-icon larry-icon larry-xinzeng1"></i>保存</a>
                    </div>--%>

                    <div style=" margin: 10px 15px;">
                        <!--  业务日志列表 -->
                        <table id="stuTableList" lay-filter="stuTableId" style="margin-top: 60px;"></table>
                    </div>
                </div>
                <%--<!-- 异常日志TAB -->
                <div class="layui-tab-item">
                    <blockquote class="layui-elem-quote mylog-info-tit" style="border-bottom: 0px; margin: 10px 15px;">
                        <div class="layui-form-item" style="margin-bottom: 0px;">
                            <input type="hidden" id="currentDate2" value="${currentDate}">
                            <form class="layui-form" id="sysExceptionForm">
                                <div class="layui-inline" style="margin: 0px;">
                                    <input type="hidden" name="logType" value="error">
                                    <div class="layui-input-inline" style="width:110px;">
                                        <select name="searchTerm" >
                                            <option value="logTitleTerm">日志标题</option>
                                        </select>
                                    </div>
                                    <div class="layui-input-inline" style="width:145px;">
                                        <input type="text" name="searchContent" value="" placeholder="请输入关键字" class="layui-input search_input">
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin:0px;">
                                    <label class="layui-form-label" style="width:auto;">请求时间</label>
                                    <div class="layui-input-inline" style="width:145px;">
                                        <input type="text" class="layui-input" id="beginTime2" name="beginTime2" placeholder="请选择" readonly>
                                    </div>
                                </div>
                                <div class="layui-inline" style="margin:0px;">
                                    <a class="layui-btn sysExceptionSearch_btn" lay-submit lay-filter="sysExceptionSearchFilter"><i class="layui-icon larry-icon larry-chaxun7"></i>查询</a>
                                </div>
                                <div class="layui-inline" style="margin:0px;">
                                    <a class="layui-btn layui-btn-normal excelSysExceptionLogExport_btn"  style="background-color:#5FB878"> <i class="layui-icon larry-icon larry-danye"></i>导出</a>
                                </div>
                            </form>
                        </div>
                    </blockquote>
                    <div class="larry-separate"></div>
                    <div style=" margin: 10px 15px;">
                        <!-- 异常日志列表 -->
                        <table id="sysLogExceptionTableList" lay-filter="sysLogExceptionTableId"></table>
                    </div>
                </div>--%>
            </div>

        </div>
    </div>
</div>

<script type="text/javascript">
    var $,table,common;
    layui.config({
        base : "${ctx}/static/js/"
    }).use(['form', 'table','common','element','laydate'], function () {
        $ =  layui.$;
        table = layui.table;
        common = layui.common;

        var  form = layui.form,
            element = layui.element,
            laydate = layui.laydate;

        //表格加载
        sysLogTable();

        /*$(".save").click(function(){
            $.ajax({
                url : '${ctx}/courses/save_curriculum.do',
                type : 'post',
                data : {classId:$("#classId").val()},
                async : false,
                success : function(data) {
                    if(data.code==200){
                        alert("保存成功")
                    }
                    parent.layer.close(index); //再执行关闭                        //刷新父页面
                    parent.location.reload();
                }
            });
            //监听提交
            /!*form.on('submit(save)', function (data) {
                table.reload('stuTableId',{
                    where: {
                        classId:$("#classId").val()
                    },
                    done: function (res, curr, count) {
                        common.resizeGrid();
                        layer.close(loading);
                    }
                });

            });*!/*/

        });




    /**业务日志table*/
    function sysLogTable() {
        var loading = layer.load(0,{ shade: [0.3,'#000']});

        table.render({
            elem: '#stuTableList',
            url: '${ctx}/courses/query_curriculum.do',
            id:'stuTableId',
            method: 'post',
            height:'full',
            skin:'row',
            even:'true',
            size: 'sm',
            where: {
                logType:'info',
                beginTime:$("#currentDate").val(),
                classId:$("#classId").val()
            },
            cols: [[
                {type:"numbers"},
                {field:'Friday', title: '星期一',align:'center' },
                {field:'Monday', title: '星期二',align:'center'},
                {field:'Thursday', title: '星期三',align:'center'},
                {field:'Tuesday', title: '星期四',align:'center'},
                {field:'Wednesday', title: '星期五',align:'center'},
            ]],
            //page: true,
            limit: 10,//默认显示10条
            done: function (res, curr, count) {
                common.resizeGrid();
                layer.close(loading);
            }
        });

    }






</script>

<script type="text/html" id="stuStatusTpl">

    {{# if(d.sex == 0){ }}
    <span style="color:#5FB878;font-weight:bold"> 0-通过</span>
    {{# } else if(d.sex == 1){ }}
    <span style="color:#FF5722;font-weight:bold"> 1-不通过</span>

    {{# } else { }}
    {{d.userStatus}}
    {{# }  }}
</script>


<!--工具条 -->
<script type="text/html" id="stuBar">
    <div class="layui-btn-group">
        <a class="layui-btn layui-btn-xs layui-btn-danger stu_fail" lay-event="stu_fail"><i class="layui-icon larry-icon larry-ttpodicon"></i>删除</a>
    </div>
</script>




</body>
</html>